﻿using System;
using System.Web.UI;

namespace CurriculumSite
{
    public partial class Curriculum : MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void ASPxMenu_Load(object sender, EventArgs e)
        {
            var enabled = Session["CandidateId"] != null;
            ASPxMenu.Items[1].Enabled = enabled;
            ASPxMenu.Items[2].Enabled = enabled;
            ASPxMenu.Items[3].Enabled = enabled;
            ASPxMenu.Items[0].Text = enabled ? "Sair" : "Entrada";
        }
    }
}
